//
//  POIAnnotation.m
//  SmartLife
//
//  Created by Lawrence on 15/10/23.
//  Copyright © 2015年 Lawrence. All rights reserved.
//

#import "POIAnnotation.h"
@interface POIAnnotation()

@property(nonatomic,readwrite,strong) AMapPOI *poi;

@end
@implementation POIAnnotation

@synthesize poi=_poi;

-(NSString *)title{
    return self.poi.name;
}

-(NSString *)subtitle{
    return self.poi.address;
}
-(CLLocationCoordinate2D) coordinate{
    return CLLocationCoordinate2DMake(self.poi.location.latitude,self.poi.location.longitude);
}

-(id) initWithPOI:(AMapPOI *)poi{
    if (self=[super init]) {
        self.poi=poi;
    }
    return self;
}
@end
